<!--
+----------------------------------------------------------------------
| 友得云客  - 开启房产营销新纪元
+----------------------------------------------------------------------
| Copyright (c) 2019~2023 优得（西安）信息科技有限公司版权所有
+----------------------------------------------------------------------
| Licensed 友得云客不是自由软件 未经允许不可移除相关版权
+----------------------------------------------------------------------
| Author: www.youdeyunke.com
+----------------------------------------------------------------------
-->
<template>
    <div v-loading="loading">
        <el-tabs :stretch="true">
            <el-tab-pane label="样式">
                <el-form-item label="风格">
                    <el-radio-group v-model="module.data.styleName">
                        <el-radio label="dashed">虚线</el-radio>
                        <el-radio label="solid">实线</el-radio>
                    </el-radio-group>
                </el-form-item>
                <el-form-item label="线条颜色">
                    <!-- <el-checkbox v-model="module.auto_bg">自动</el-checkbox> -->
                    <el-radio-group v-model="module.data.colorType">
                        <el-radio label="default">默认</el-radio>
                        <el-radio label="auto">自动</el-radio>
                        <el-radio label="custom">自定义</el-radio>
                    </el-radio-group>
                </el-form-item>
                <el-form-item label="" v-if="module.data.colorType == 'custom'">
                    <el-color-picker v-model="module.data.color" size="mini"></el-color-picker>
                </el-form-item>
                <module-style-editor :module="module" />
            </el-tab-pane>
        </el-tabs>
    </div>
</template>

<script>
import Transfer from "@/components/Transfer";
import ModuleStyleEditor from "./ModuleStyleEditor/Index";
import HeaderEditor from "./base/HeaderEditor";
import { getNewsList } from "@/api/news";

export default {
    components: {
        Transfer,
        HeaderEditor,
        ModuleStyleEditor,
    },
    props: {
        module: { type: Object },
    },
    data () {
        return {
            loading: false,

        };
    },
    mounted: function () {

    },

    methods: {

    },
};
</script>

<style scoped>
.styles {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.styles li {
    width: 100px;
    height: 80px;
    border: 1px solid #fff;
    border-radius: 10px;
    margin-right: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-content: center;
}

.styles li:hover {
    border: 1px solid #f4f4f4;
}

.styles li.active {
    border: 1px solid #1989fa;
}
</style>